import 'package:flutter_deer/generated/json/base/json_field.dart';
import 'package:flutter_deer/generated/json/take_out_entity.g.dart';

@JsonSerializable()
class TakeOutEntity {

  TakeOutEntity();

  factory TakeOutEntity.fromJson(Map<String, dynamic> json) =>
      $TakeOutEntityFromJson(json);

  Map<String, dynamic> toJson() => $TakeOutEntityToJson(this);

  @JSONField(name: 'date')
  String? date;
  @JSONField(name: 'month')
  String? month;
  @JSONField(name: 'list')
  List<TakeOutItemEntity>? list;
}

@JsonSerializable()
class TakeOutItemEntity {

  TakeOutItemEntity();

  factory TakeOutItemEntity.fromJson(Map<String, dynamic> json) => $TakeOutItemEntityFromJson(json);

  Map<String, dynamic> toJson() => $TakeOutItemEntityToJson(this);

  @JSONField(name: 'id')
  int? id;
  @JSONField(name: 'cardNo')
  String? cardNo;
  @JSONField(name: 'cardUsername')
  String? cardUsername;
  @JSONField(name: 'bankName')
  String? bankName;
  @JSONField(name: 'bankCover')
  String? bankCover;
  @JSONField(name: 'score')
  double? score;
  @JSONField(name: 'beforeScore')
  double? beforeScore;
  @JSONField(name: 'username')
  String? username;
  @JSONField(name: 'userAvatar')
  String? userAvatar;
  @JSONField(name: 'userNickName')
  String? userNickName;
  @JSONField(name: 'status')
  String? status;
  @JSONField(name: 'remark')
  String? remark;
  @JSONField(name: 'createTime')
  String? createTime;
  @JSONField(name: 'time')
  String? time;
}